<template>
	<div style="display: inline-block;">
		<a-button type="primary" icon="search" @click="() => visible = true">
			{{btnText}}
		</a-button>
		<combined-queryModal :key="Date.now().valueOf()" :visible.sync="visible" :fieldData="fieldData" @refresh="(e) => $emit('refresh',e)">
			
		</combined-queryModal>
	</div>
</template>

<script>
	import CombinedQueryModal from "./modal/CombinedQueryModal";
	export default {
		name: "CombinedQuery",
		components: {
			CombinedQueryModal
		},
		props: {
			// 列表页传入的列数据
			columns: {
				type: Array
			},
			btnText: {
				type: String,
				default: "高级查询"
			}
		},
		data() {
			return {
				visible: false,
				fieldData: this.columns.filter(e => {return e.key != "serial" && e.dataIndex != "action"})
			};
		},
		mounted() {

		},
		watch: {

		},
		methods: {
			
		}
	};
</script>

<style scoped>
	
</style>
